package com.ggb.reactive.domain.entity

import com.fasterxml.jackson.databind.annotation.JsonSerialize
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer
import io.swagger.v3.oas.annotations.media.Schema
import lombok.AllArgsConstructor
import lombok.Builder
import lombok.Data
import lombok.NoArgsConstructor
import org.springframework.data.annotation.Id
import org.springframework.data.relational.core.mapping.Table
import java.math.BigDecimal
import java.time.Instant


@Table("order_detail")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title="订单实体 Orders")

data class OrderDetail(
    @Id
    var id: Long? = null,
    @Schema(description = "数量")
    var number: Int? = null,
    @Schema(description = "名称")
    var name: String? = null,
    @Schema(description = "订单id")
    var orderId: Long? = null,
    @Schema(description = "菜品id")
    var dishId: Long? = null,
    @Schema(description = "套餐id")
    var setmealId: Int? = null,
    @Schema(description = "口味")
    var dishFlavor: String? = null,
    @Schema(description = "实收金额")
    var amount: BigDecimal? = null,
    @Schema(description = "图片")
    var image: String? = null,
)
